package stocks.client.gui.controller.actions;

import stocks.client.gui.model.model;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;

public class ExitAction extends AbstractAction{

	private model m;
	
	/**
	 * Constructor, takes model as a parameter
	 */
	public ExitAction(model m)
	{
		this.m = m;
	}
	
	@Override
	public void actionPerformed(ActionEvent e) {

		System.exit(0); //close program
		
	}

}
